home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
p4
/
p4-1_2b.lha
/
p4-1.2b
/
lib_f
/
p4_fmaster.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-19
|
696b
|
39 lines
#include "p4.h"
#include "p4_sys.h"
#include "p4_fort.h"
VOID p4init_()
{
int argc = 0;
char *argv[20];
char *q;
int argcnt;
p4_dprintfl(30, "enter fortran p4init\n");
numargc_(&argcnt);
while(argc <= argcnt)
{
q = (char *)malloc(200);
/* args Fortran subroutine */
args_(&argc,q);
argv[argc] = q;
q = (char *)index(argv[argc],' ');
*q = '\0';
p4_dprintfl(30, "\n fortran argv[%d] = %s\n",argc,argv[argc]);
++argc;
}
p4_initenv(&argc,argv);
p4_dprintfl(30, "exit fortran p4init\n");
}
VOID p4crpg_()
{
if (p4_create_procgroup() < 0)
p4_error("p4crpg_: p4_create_procgroup failed",0);
}
VOID p4cleanup_()
{
p4_wait_for_end();
}